package de.java.shortys.myhome.fuelmonitor.view;

import java.awt.Component;
import java.awt.Dimension;
import java.util.Observable;

import javax.swing.JPanel;

import de.java.shortys.myhome.api.view.IView;

public class ExtendedViewAverageConsumption implements IView {

	private JPanel contentPane;

	@Override
	public Component build() {
		if (contentPane == null) {
			initialize();
		}

		return contentPane;
	}

	private void initialize() {
		contentPane = new JPanel();
		contentPane.setPreferredSize(new Dimension(0, 0));
		contentPane.setOpaque(false);
	}

	@Override
	public void clear() {
		// Empty
	}

	@Override
	public void update(Observable o, Object arg) {
		// Emtpy
	}

}
